package com.woniuxy.controller.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class AddShopform {

    private String shopCode;
    @NotBlank(message = "名字不能为空")
    @Length(min = 3,message = "店铺名字不符合规定")
    private String shopName;

    private String contact;
    @NotBlank(message = "地址不能为空")
    @Length(min = 4,message = "地址长度不符合规定")
    private String address;
    @NotBlank(message = "电话不能为空")
    @Length(min = 10,max = 13,message = "电话长度不符合规定")
//    @Pattern(regexp = "//d+$",message = "电话不能为字母")
    private String phoneNo;
    @NotBlank(message = "状态不能为空")
    private String shopStat;
    private List<String> whCode;

}
